from apiflask import APIFlask

from applications.api import init_apis
from applications.config import config
from applications.extensions import init_extensions


def create_app():
    app = APIFlask(__name__, title='Pear Admin Apiflask', version='0.01')
    app.config.from_object(config)
    init_extensions(app)
    init_apis(app)
    return app
